<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<!-- <meta http-equiv="refresh" content="2" /> -->
	<title>注册、第二步</title>
	<!--[if lt IE 9]>
		<script src="<%=basePath %>js/ie9.js"></script>
	<![endif]-->
	<link rel="icon" href="<%=basePath %>images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=basePath %>images/favicon.ico" type="image/x-icon" />
	<script src="<%=basePath %>js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/jquery.cookie.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/cookie.save.js"></script>
	<script src="<%=basePath %>js/jquery.validate.min.js"></script>
	<script src="<%=basePath %>js/birthday.js"></script>
	<script src="<%=basePath %>js/sign-up.js"></script>
	<script src="<%=basePath %>js/signext.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/signup.css" />
</head>
<body>
	<div id="header">
		<div class="header-content">
			<h1 class="logo">
				<a href="<%=basePath %>jsp/index.jsp">photobucket</a>
			</h1>
			<a href="<%=basePath %>jsp/upload.jsp" class="nav-upload">上传</a>
			<form action="pictureAction!findByKeyWord" class="search" method="post">
				<div class="search-group">
					<input type="text" name="keyWord" class="field style" value="用户名、图片类别"/>
					<input type="hidden" name="page" value="1"/>
					<input type="submit" title="Submit" value="" class="submit" />
				</div>
			</form>
			<div class="login">
				<a href="#">${sessionScope.loginUser.userName }</a><a href="#">个人信息</a>
			</div>
		</div>
	</div> <!-- header -->
	<form action="userAction!register?regStep=2" class="signup" method="post" id="settingForm">
		<div class="content">
			<h2 style="font-size: 24px;">设置您的相片存放空间，设置后不可修改<img src="../images/green.png"></h2>
			<p>由字母(a-z)、数字(0-9)和下划线(_)组成，默认存放空间为您的用户名 </p>
			<div class="input-groups">
				<div class="input-group2">
					<label for="username">空间名称：</label>
					<input type="text" name="user.album" id="user.album" />
				</div>
				<div class="input-group2">
					<label for="username">性别：</label>
					<em>
						<input type="radio" name="user.gender" value="男" checked="checked" />&nbsp;男
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="user.gender" value="女" />&nbsp;女
					</em>
				</div>
				<div class="input-group2">
					<label for="username">出生日期：</label>
					<em>
					<select name="year" id="year1" onchange="TUpdateCal(year1.value,month1.value);">     
					</select>年  
					<select name="month" id="month1" onchange="TUpdateCal(year1.value,month1.value);" >     
					</select>月  
					<select name="day" id="day1">
					</select>日
					</em>
				</div>
				<div class="input-group2">
					<label for="username">个人主页：</label>
					<input type="text" name="user.homePage" id="user.homePage"/>
					<input type="hidden" value="${sessionScope.loginUser.id }" name="user.id"/>
					<input type="hidden" value="${sessionScope.loginUser.userName }" name="user.userName"/>
				</div>
				<input type="submit" value="继续" id="submit-signup" />
			</div>
		</div>
	</form>
	<div class="footer">
		<div class="footer-content">
			<p>Copyright 2012 Sharelife Corporation.  All rights reserved.  |   <a href="#">Privacy policy</a>  |   <a href="#">Terms of use</a>  |   <a href="#">Site map</a></p>
		</div>
	</div>
</body>
</html>